<script type="text/javascript" src="views/parkLotCenter/facilitiesManage/js/parkOrgequ_video.js"></script>
<script>
    var equOrg = null;
    $(document).ready(function() {
        equOrg = new parkOrgequJs($("#parkOrgequDiv"));
    });
</script>
<div id="parkOrgequDiv" style="height:100%">
    <!---  start切换内容  --->
    <div class="basicInfoContent-panel" style="height:calc(100% - 65px);background: #f0f0f0;">
        <div class="basicInfo-box">
            <div class="list">
                <div class="list-text">
                    <label>设备编号：</label>
                    <input class="k-textbox input-info" type="text" disabled="disabled" id="oid" placeholder="系统自动生成..." data-bind="value:organizationCode" />
                    <input class="k-textbox input-info" type="hidden" data-bind="value:organizationTypeCode" />
                    <input class="k-textbox input-info" type="hidden" data-bind="value:orgLevel" />
                    <input class="k-textbox input-info" type="hidden" data-bind="value:parentCode" />
                    <input class="k-textbox input-info" type="hidden" data-bind="value:equipmentManagements_basic_autoRecognition"/>
                </div>
                <div class="list-text">
                    <label>设备名称：</label>
                    <input class="k-textbox input-info" type="text" data-bind="value:organizationName" pattern="^[\u4E00-\u9FA5A-Za-z0-9]+$" validationMessage="检测到特殊字符" maxlength="31" required/>
                </div>
                <div class="list-text" style="width: 98%;">
                    <label>设备类型：</label>
                    <input type="text" style="width:250px"  id="deviceType" data-bind="value:equipmentManagements_basic_deviceid" required>
                </div>
<!--                 <div class="list-text"> -->
<!--                     <label>设备机号：</label> -->
<!--                     <input class="k-textbox input-info" type="number" data-bind="value:equipmentManagements_basic_deviceNumber" min="1" max="99" validationMessage="设备机号为1到2位数字"  required  pattern="^[1-9][0-9]?$"/> -->
<!--                 </div> -->
                <div class="list-text">
                    <label>通讯IP：</label>
                    <input class="k-textbox input-info" type="text" data-bind="value:equipmentManagements_basic_ip" validationMessage="请输入有效IP地址"  required  pattern="^((?:(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(?:25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d))))$"/>
                </div>
                <div class="list-text">
                    <label>通讯端口：</label>
                    <input class="k-textbox input-info" type="text" data-bind="value:equipmentManagements_basic_port" validationMessage="端口号为1到65535区间值"  required  pattern="(^[1-9]\d{0,3}$)|(^[1-5]\d{4}$)|(^6[0-4]\d{3}$)|(^65[0-4]\d{2}$)|(^655[0-2]\d$)|(^6553[0-5]$)"/>
                </div>
                <div class="list-text">
                    <label>用户名：</label>
                    <input class="k-textbox input-info" type="text" data-bind="value:equipmentManagements_account_loginName" validationMessage="用户名为必填且不能包含特殊字符" pattern="^[\u4e00-\u9fa5A-Za-z0-9-_]*$"/>
                </div>
                <div class="list-text">
                    <label>密码：</label>
                    <input class="k-textbox input-info" type="password" data-bind="value:equipmentManagements_account_loginPsw"/>
                </div>
<!--                 <div class="list-text"> -->
<!--                     <label>喇叭音量：</label> -->
<!--                     <div class="range" style="width:250px;float:left"> -->
<!--                         <input id="range" type="range" min="0" max="100" style="width:220px" onchange="equOrg.rangeChange()" data-bind="value:equipmentManagements_basic_range"> -->
<!--                         <span id="value" >50</span> -->
<!--                     </div> -->
<!--                 </div> -->
<!--                 <div class="list-text"> -->
<!--                     <label>喇叭音量类型：</label> -->
<!--                     <input type="text" style="width:250px"  id="voicegender" data-bind="value:equipmentManagements_basic_gender" required> -->
<!--                 </div> -->
<!--                 <div class="list-text" id="one"> -->
<!--                     <label>是否主识别：</label> -->
<!--                     <div class="switch-button"> -->
<!--                         <div class="checkbox"> -->
<!--                             <input type="checkbox" data-bind="value:equipmentManagements_open_autoRecognition"/> -->
<!--                             <label></label> -->
<!--                         </div></div> -->
<!--                 </div> -->
                <div class="list-text">
                    <label>备注：</label>
                    <textarea class="k-textbox" rows="5" cols="93" style="width:650px" data-bind="value:equipmentManagements_basic_remark"></textarea>
                </div>
            </div>
        </div>
    </div>
    <div class="basicInfo-btn" style="border-top:1px solid #c5c5c5">
        <button class="save" data-bind="click:saveequOrg">确定</button>
        <button class="cancel" data-bind="click:cancel">取消</button>
    </div>
</div>